using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using QuanLyThietBi.Config;     
using QuanLyThietBi.Entity;
namespace QuanLyThietBi.ManagerBase
{
                

     public abstract class TBL_ThietBiManagerBase
    {
        public TBL_ThietBiManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>TBL_ThietBiEntity</returns>
        public TBL_ThietBiEntity Insert(TBL_ThietBiEntity obj)
        { 
            return (TBL_ThietBiEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>TBL_ThietBiEntity</returns>
        public TBL_ThietBiEntity Update(TBL_ThietBiEntity obj)
        { 
            return (TBL_ThietBiEntity)Adapter.Update(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo dieu kien trong object
        /// </summary>
        /// <returns>TBL_ThietBiEntity</returns>
        public TBL_ThietBiEntity UpdateWithCondition(TBL_ThietBiEntity obj,TBL_ThietBiEntity objCond)
        { 
            return (TBL_ThietBiEntity)Adapter.UpdateWithCondition(obj,objCond);             
        }
 
 
        public TBL_ThietBiEntity Delete(TBL_ThietBiEntity obj)
        { 
            return (TBL_ThietBiEntity)Adapter.Delete(obj);             
        }
 
 
        public TBL_ThietBiEntity DeleteWithCondition(TBL_ThietBiEntity objCond)
        { 
            return (TBL_ThietBiEntity)Adapter.DeleteWithCondition(objCond);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaDonVi duoc set trong object
        /// </summary>
        /// <returns>TBL_ThietBiEntity</returns>
        public TBL_ThietBiEntity DeleteByMaDonVi (TBL_ThietBiEntity obj)
        { 
            return (TBL_ThietBiEntity)Adapter.DeleteByField(obj,"MaDonVi");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaDonVi 
        /// </summary>
        /// <returns>TBL_ThietBiEntity</returns>
        public TBL_ThietBiEntity DeleteByMaDonVi (string MaDonVi )
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.MaDonVi = MaDonVi;  
            return (TBL_ThietBiEntity)Adapter.DeleteByField(obj,"MaDonVi");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaLoaiTB duoc set trong object
        /// </summary>
        /// <returns>TBL_ThietBiEntity</returns>
        public TBL_ThietBiEntity DeleteByMaLoaiTB (TBL_ThietBiEntity obj)
        { 
            return (TBL_ThietBiEntity)Adapter.DeleteByField(obj,"MaLoaiTB");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaLoaiTB 
        /// </summary>
        /// <returns>TBL_ThietBiEntity</returns>
        public TBL_ThietBiEntity DeleteByMaLoaiTB (string MaLoaiTB )
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.MaLoaiTB = MaLoaiTB;  
            return (TBL_ThietBiEntity)Adapter.DeleteByField(obj,"MaLoaiTB");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>TBL_ThietBiEntity</returns>
        public TBL_ThietBiEntity DeleteByMaTB (TBL_ThietBiEntity obj)
        { 
            return (TBL_ThietBiEntity)Adapter.DeleteByField(obj,"MaTB");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MaTB 
        /// </summary>
        /// <returns>TBL_ThietBiEntity</returns>
        public TBL_ThietBiEntity DeleteByMaTB (string MaTB )
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.MaTB = MaTB;  
            return (TBL_ThietBiEntity)Adapter.DeleteByField(obj,"MaTB");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien TenTB duoc set trong object
        /// </summary>
        /// <returns>TBL_ThietBiEntity</returns>
        public TBL_ThietBiEntity DeleteByTenTB (TBL_ThietBiEntity obj)
        { 
            return (TBL_ThietBiEntity)Adapter.DeleteByField(obj,"TenTB");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien TenTB 
        /// </summary>
        /// <returns>TBL_ThietBiEntity</returns>
        public TBL_ThietBiEntity DeleteByTenTB (string TenTB )
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.TenTB = TenTB;  
            return (TBL_ThietBiEntity)Adapter.DeleteByField(obj,"TenTB");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ThongTinCauHinh duoc set trong object
        /// </summary>
        /// <returns>TBL_ThietBiEntity</returns>
        public TBL_ThietBiEntity DeleteByThongTinCauHinh (TBL_ThietBiEntity obj)
        { 
            return (TBL_ThietBiEntity)Adapter.DeleteByField(obj,"ThongTinCauHinh");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ThongTinCauHinh 
        /// </summary>
        /// <returns>TBL_ThietBiEntity</returns>
        public TBL_ThietBiEntity DeleteByThongTinCauHinh (string ThongTinCauHinh )
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.ThongTinCauHinh = ThongTinCauHinh;  
            return (TBL_ThietBiEntity)Adapter.DeleteByField(obj,"ThongTinCauHinh");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public TBL_ThietBiEntity Select(TBL_ThietBiEntity obj)
        { 
            return (TBL_ThietBiEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_ThietBiEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(TBL_ThietBiEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new TBL_ThietBiEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new TBL_ThietBiEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_ThietBiEntity> SelectAllLST()
        { 
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_ThietBiEntity()),new TBL_ThietBiEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<TBL_ThietBiEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new TBL_ThietBiEntity(),option),new TBL_ThietBiEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDonVi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaDonVi (TBL_ThietBiEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaDonVi");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDonVi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaDonVi (TBL_ThietBiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaDonVi",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDonVi duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ThietBiEntity></returns>
        public List<TBL_ThietBiEntity> SelectByMaDonViLST (TBL_ThietBiEntity obj)
        { 
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaDonVi"),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDonVi duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ThietBiEntity></returns>
        public List<TBL_ThietBiEntity> SelectByMaDonViLST (TBL_ThietBiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaDonVi",option),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDonVi 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaDonVi (string MaDonVi )
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.MaDonVi = MaDonVi;  
            return Adapter.SelectByField(obj,"MaDonVi");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDonVi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaDonVi (string MaDonVi, SelectOptions option)
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.MaDonVi = MaDonVi;  
            return Adapter.SelectByField(obj,"MaDonVi",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDonVi 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ThietBiEntity> SelectByMaDonViLST (string MaDonVi )
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.MaDonVi = MaDonVi;  
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaDonVi"),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaDonVi duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ThietBiEntity> SelectByMaDonViLST (string MaDonVi, SelectOptions option)
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.MaDonVi = MaDonVi;  
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaDonVi",option),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaLoaiTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaLoaiTB (TBL_ThietBiEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaLoaiTB");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaLoaiTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaLoaiTB (TBL_ThietBiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaLoaiTB",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaLoaiTB duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ThietBiEntity></returns>
        public List<TBL_ThietBiEntity> SelectByMaLoaiTBLST (TBL_ThietBiEntity obj)
        { 
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaLoaiTB"),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaLoaiTB duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ThietBiEntity></returns>
        public List<TBL_ThietBiEntity> SelectByMaLoaiTBLST (TBL_ThietBiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaLoaiTB",option),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaLoaiTB 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaLoaiTB (string MaLoaiTB )
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.MaLoaiTB = MaLoaiTB;  
            return Adapter.SelectByField(obj,"MaLoaiTB");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaLoaiTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaLoaiTB (string MaLoaiTB, SelectOptions option)
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.MaLoaiTB = MaLoaiTB;  
            return Adapter.SelectByField(obj,"MaLoaiTB",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaLoaiTB 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ThietBiEntity> SelectByMaLoaiTBLST (string MaLoaiTB )
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.MaLoaiTB = MaLoaiTB;  
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaLoaiTB"),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaLoaiTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ThietBiEntity> SelectByMaLoaiTBLST (string MaLoaiTB, SelectOptions option)
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.MaLoaiTB = MaLoaiTB;  
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaLoaiTB",option),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaTB (TBL_ThietBiEntity obj)
        { 
            return Adapter.SelectByField(obj,"MaTB");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaTB (TBL_ThietBiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MaTB",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ThietBiEntity></returns>
        public List<TBL_ThietBiEntity> SelectByMaTBLST (TBL_ThietBiEntity obj)
        { 
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaTB"),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ThietBiEntity></returns>
        public List<TBL_ThietBiEntity> SelectByMaTBLST (TBL_ThietBiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MaTB",option),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaTB (string MaTB )
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.MaTB = MaTB;  
            return Adapter.SelectByField(obj,"MaTB");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMaTB (string MaTB, SelectOptions option)
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.MaTB = MaTB;  
            return Adapter.SelectByField(obj,"MaTB",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ThietBiEntity> SelectByMaTBLST (string MaTB )
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.MaTB = MaTB;  
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaTB"),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MaTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ThietBiEntity> SelectByMaTBLST (string MaTB, SelectOptions option)
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.MaTB = MaTB;  
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MaTB",option),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTenTB (TBL_ThietBiEntity obj)
        { 
            return Adapter.SelectByField(obj,"TenTB");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTenTB (TBL_ThietBiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"TenTB",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenTB duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ThietBiEntity></returns>
        public List<TBL_ThietBiEntity> SelectByTenTBLST (TBL_ThietBiEntity obj)
        { 
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TenTB"),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenTB duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ThietBiEntity></returns>
        public List<TBL_ThietBiEntity> SelectByTenTBLST (TBL_ThietBiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"TenTB",option),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenTB 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTenTB (string TenTB )
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.TenTB = TenTB;  
            return Adapter.SelectByField(obj,"TenTB");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByTenTB (string TenTB, SelectOptions option)
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.TenTB = TenTB;  
            return Adapter.SelectByField(obj,"TenTB",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenTB 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ThietBiEntity> SelectByTenTBLST (string TenTB )
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.TenTB = TenTB;  
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TenTB"),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien TenTB duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ThietBiEntity> SelectByTenTBLST (string TenTB, SelectOptions option)
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.TenTB = TenTB;  
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"TenTB",option),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ThongTinCauHinh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByThongTinCauHinh (TBL_ThietBiEntity obj)
        { 
            return Adapter.SelectByField(obj,"ThongTinCauHinh");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ThongTinCauHinh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByThongTinCauHinh (TBL_ThietBiEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ThongTinCauHinh",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ThongTinCauHinh duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ThietBiEntity></returns>
        public List<TBL_ThietBiEntity> SelectByThongTinCauHinhLST (TBL_ThietBiEntity obj)
        { 
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ThongTinCauHinh"),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ThongTinCauHinh duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ThietBiEntity></returns>
        public List<TBL_ThietBiEntity> SelectByThongTinCauHinhLST (TBL_ThietBiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ThongTinCauHinh",option),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ThongTinCauHinh 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByThongTinCauHinh (string ThongTinCauHinh )
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.ThongTinCauHinh = ThongTinCauHinh;  
            return Adapter.SelectByField(obj,"ThongTinCauHinh");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ThongTinCauHinh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByThongTinCauHinh (string ThongTinCauHinh, SelectOptions option)
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.ThongTinCauHinh = ThongTinCauHinh;  
            return Adapter.SelectByField(obj,"ThongTinCauHinh",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ThongTinCauHinh 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ThietBiEntity> SelectByThongTinCauHinhLST (string ThongTinCauHinh )
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.ThongTinCauHinh = ThongTinCauHinh;  
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ThongTinCauHinh"),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ThongTinCauHinh duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<TBL_ThietBiEntity> SelectByThongTinCauHinhLST (string ThongTinCauHinh, SelectOptions option)
        { 
            TBL_ThietBiEntity obj = new TBL_ThietBiEntity();
            obj.ThongTinCauHinh = ThongTinCauHinh;  
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ThongTinCauHinh",option),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ThietBiEntity></returns>
        public List<TBL_ThietBiEntity> SelectWithConditionLST (TBL_ThietBiEntity obj)
        { 
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new TBL_ThietBiEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<TBL_ThietBiEntity></returns>
        public List<TBL_ThietBiEntity> SelectWithConditionLST (TBL_ThietBiEntity obj,SelectOptions option)
        { 
            return  (List<TBL_ThietBiEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new TBL_ThietBiEntity());
        }

}
}
